home *** CD-ROM | disk | FTP | other *** search
- If anyone is interested, I have almost finished coding a Multi Plot
- command, to add to my Falcon Extension (Available from my web page, read
- a previous message). This command has the following capabilites:
-
- Syntax:
-
- Multi Plot X,Y,N,A
-
- X=Starting X Coordinate of where you want to plot to.
- Y=Y coordinate of where you want to plot to.
- N=Number of pixels you want to plot.
- A=Starting address of `colour data' in memory.
-
- Let me explain excatly what it does!
-
- Say you are doing some sort of minimap. 32x32 pixels for example. Normal code:
-
- S=Start(10) ; Bank 10 will contain your colour data (0-63, example)
-
- For Y=0 to 31
- For X=0 to 31
- Plot X,Y,S+Y*32+X
- Next X
- Next Y
-
- Okay. I know you could optomise that multiplication, and change the plot
- command for F Plot, Turbo Plot, Falcon Plot or whatever, but that is not the
- point! Using the Multi Plot command, it would be like this:
-
- For Y=0 to 31
- Multi Plot X,Y,32,S+Y*32
- Next Y
-
- Advantages of this method:
-
- * Less code = easier to read.
- * Don't have to worry about optomisation.
- * Since you only call the command once (per line), it only has to find the
- screen address once, only has to work out where to start from once, etc.
- Rather than 32 times. This simple fact alone, triples the speed!!!!!
-
- Interested? Good. It will be available VERY SHORTLY! First, though, I want to
- know what features you think I should put in it! (Nothing too difficult). Tell
- me if it is worth making the same command, but going down instead of accross
- etc. And what you think the syntax should be.
-
- Thankyou.
-
- --
- ***************
- Falcon Software
- ***************
-
-
-